package com.blds.mc.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stwyj
 * @since 2018-06-30
 */
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @TableId("open_id")
    private String openId;
    private String mobile;
    @TableField("is_admin")
    private Integer isAdmin;
    @TableField("can_upload")
    private Integer canUpload;
    /**
     * 0:未申请，1：申请成为管理员，2：申请成为上传者
     */
    @TableField("apply_flag")
    private Integer applyFlag;
    /**
     * 申请时间
     */
    @TableField("apply_time")
    private Date applyTime;


    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Integer isAdmin) {
        this.isAdmin = isAdmin;
    }

    public Integer getCanUpload() {
        return canUpload;
    }

    public void setCanUpload(Integer canUpload) {
        this.canUpload = canUpload;
    }

    public Integer getApplyFlag() {
        return applyFlag;
    }

    public void setApplyFlag(Integer applyFlag) {
        this.applyFlag = applyFlag;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.openId;
    }

    @Override
    public String toString() {
        return "User{" +
        "openId=" + openId +
        ", mobile=" + mobile +
        ", isAdmin=" + isAdmin +
        ", canUpload=" + canUpload +
        ", applyFlag=" + applyFlag +
        ", applyTime=" + applyTime +
        "}";
    }
}
